<?php
//开启session
session_start();
//释放session
unset($_SESSION['username']);
unset($_SESSION['id']);
unset($_SESSION['qx']);
//设置session过期
setcookie('username','',time()-1,'/');
header('location:./index.php');